<?php
require_once 'yourSite/validators/Validator1.class.php';
class ValidationTest1Action extends Action {
   /**
    * @validate Validator1
    */
   protected $name;
 
   /**
    * @validate this->validSurname(surname)
    */
   protected $surname;
 
   public function validName($var) {
       return $var.':validate;';
   }
 
 
   public function validSurname($var,$varName=null) {
       return $var.' | '.strval($varName).':validate;';
   }
 
   public function execute() {
      return 'name='.$this->name.'<br/>surname='.$this->surname;
   }
}
?>